import service from "../utils/request";

//Banner图管理
//列表
export function banner_list(payload = {}) {
    return service.get('/banner_list', { params: payload })
}
//删除单条数据
export function banner_delete(payload:any = {}){
    return service.delete('/banner_list/'+payload.id,payload)
}
//搜索
export function banner_search( payload:any = {} ){
    return service.get('/banner_list', { params: payload});
}
//新增
export function banner_add( payload = {} ){
    return service.post('/banner_list', payload );
}
//编辑
export function banner_edit( payload = {} ){
    return service.put('/banner_list', { params: payload } );
}




//员工管理
//员工管理列表
export function staff_list(payload = {}){
    return service.get('/staff_list',{ params:payload })
}
//删除单条数据
export function staff_delete(payload:any = {}){
    return service.delete('/staff_list/'+payload.id,payload)
}
//新增员工
export function staff_add( payload = {} ){
    return service.post('/staff_list', payload );
}
//搜索
export function staff_search( payload:any = {} ){
    return service.get('/staff_list', { params: payload});
}





//角色管理
//角色列表
export function role_list(payload = {}) {
    return service.get('/role_list', { params: payload })
}
//删除单条数据
export function role_delete(payload:any = {}){
    return service.delete('/role_list/'+payload.id,payload)
}
//新增角色数据
export function role_add( payload = {} ){
    return service.post('/role_list', payload );
}
//搜索
export function role_search( payload:any = {} ){
    return service.get('/role_list', { params: payload});
}




//操作日志
//日志列表
export function logss_list(payload = {}){
    return service.get('/logss_list',{ params:payload })
}
//搜索
export function logss_search( payload:any = {} ){
    return service.get('/logss_list', { params: payload});
}



//新增
export function information_list( payload = {} ){
    return service.post('/information_list', payload );
<<<<<<< HEAD
=======
}


//会员权益
//列表
export function member_list(payload = {}) {
    return service.get('/member_list', { params: payload })
}
//新增
export function member_add( payload = {} ){
    return service.post('/member_list', payload );
>>>>>>> gl
}